home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
428_02
/
examples
/
wopen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-13
|
514b
|
25 lines
/*
** WOPEN.C: Creates a window and displays some text in it.
*/
#include <pictor.h>
void main()
{
/* initialize library */
initvideo();
vcolor(foreback(BOLD+WHITE,BLUE)); cls();
/* create a window and write some text in it */
wopen(5,6,17,70,foreback(BLACK,WHITE),WO_SHADOW);
wputs("Hello, world. wputs() here!\n\nPress any key");
/* wait for user to press a key */
kbdread();
wclose();
/* restore screen */
vcolor(foreback(WHITE,BLACK));
cls();
}